home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_geomview.idb / usr / freeware / catman / p_man / cat3 / sweep.Z / sweep
Encoding:
Text File  |  1999-01-26  |  2.3 KB  |  67 lines

  1.  
  2.  
  3.  
  4.      sssswwwweeeeeeeepppp((((3333))))       GGGGeeeeoooommmmeeeettttrrrryyyy CCCCeeeennnntttteeeerrrr ((((SSSSeeeepppptttteeeemmmmbbbbeeeerrrr 22222222,,,, 1111999999992222))))          sssswwwweeeeeeeepppp((((3333))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.       TranslationSweep - Routine to    create surfaces    of extrusion.
  10.       RotationSweep    - Routine to create surfaces of    rotation.
  11.  
  12.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.       Geom *TranslationSweep(float length, Point3 *p, Geom *g);
  14.       Geom *RotationSweep(float angle, Point3 *end,    Point3 *axis,
  15.             int divisions, Geom *g);
  16.  
  17.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  18.       TranslationSweep and RotationSweep are used to create
  19.       polylist objects which are the translational sweep (surface
  20.       of extrusion)    or rotational sweep (surface of    rotation) of
  21.       the Geom g, which must be a vect.
  22.  
  23.       TranslationSweep takes as its    arguements the length and
  24.       direction of the sweep.  The returned    off object will    be a
  25.       representation of the    Geom g swept length units in the
  26.       direction of the vector p.
  27.  
  28.       RotationSweep    forms a    surface    by rotating the    object g by
  29.       angle    units.    The angle parameter should be specified    in
  30.       radians.  The    rotation is about the axis specified by    the
  31.       endpoint end and in the direction axis.  The surface of
  32.       rotation will    be divided radially into divisions parts.
  33.  
  34.       If angle is within .01 of 2.0    * pi (as defined in math.h),
  35.       it will be assumed that a full rotation is desired.  In the
  36.       returned polylist object, the    ends of    the sweep will refer
  37.       to the same points to    prevent    a crack    from appearing due to
  38.       round    off error.
  39.  
  40.       Either routine will print out    an error message and return
  41.       NULL if the Geom g is    non-NULL and is    not of the vect    type.
  42.       Either routine will return NULL (with    no error message) if g
  43.       is NULL.
  44.  
  45.      SSSSEEEEEEEE AAAALLLLSSSSOOOO
  46.       sweep(1)
  47.  
  48.      AAAAUUUUTTTTHHHHOOOORRRR
  49.       Celeste Fowler       email:  fowler@geom.umn.edu
  50.       The Geometry Center       phone:  (612) 626-8304
  51.       1300 South Second Street
  52.       Minneapolis, MN  55454
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.      Page 1                        (printed 12/22/98)
  64.  
  65.  
  66.  
  67.